using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public sealed class frmUser : Form
{
	private IContainer icontainer_0;
	private Button btnCancel;
	private Button btnOK;
	private TextBox txtName;
	private Label label1;
	private TextBox txtLogin;
	private Label label2;
	private TextBox txtPassword;
	private Label label3;
	private Label label4;
	private ComboBox cbxRight;
	private GroupBox groupBox1;
	private CheckBox chkUser;
	private CheckBox chkCamera;
	private CheckBox chkOption;
	private CheckBox chkView;
	private TextBox txtDescription;
	private Label label5;
	private CheckBox chkSpeedGun;
	private CheckBox chkReport;
	public frmUser()
	{
		this.InitializeComponent();
		System.Drawing.Color backColor = System.Drawing.Color.FromName(MainForm.SystemConfiguration_0.string_15);
		this.BackColor = backColor;
		if (this.cbxRight.Text == string.Empty)
		{
			this.cbxRight.SelectedIndex = 0;
		}
	}
	protected override void Dispose(bool disposing)
	{
		if (disposing && this.icontainer_0 != null)
		{
			this.icontainer_0.Dispose();
		}
		base.Dispose(disposing);
	}
	private void InitializeComponent()
	{
        System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmUser));
        this.btnCancel = new System.Windows.Forms.Button();
        this.btnOK = new System.Windows.Forms.Button();
        this.txtName = new System.Windows.Forms.TextBox();
        this.label1 = new System.Windows.Forms.Label();
        this.txtLogin = new System.Windows.Forms.TextBox();
        this.label2 = new System.Windows.Forms.Label();
        this.txtPassword = new System.Windows.Forms.TextBox();
        this.label3 = new System.Windows.Forms.Label();
        this.label4 = new System.Windows.Forms.Label();
        this.cbxRight = new System.Windows.Forms.ComboBox();
        this.groupBox1 = new System.Windows.Forms.GroupBox();
        this.chkSpeedGun = new System.Windows.Forms.CheckBox();
        this.chkReport = new System.Windows.Forms.CheckBox();
        this.chkUser = new System.Windows.Forms.CheckBox();
        this.chkCamera = new System.Windows.Forms.CheckBox();
        this.chkOption = new System.Windows.Forms.CheckBox();
        this.chkView = new System.Windows.Forms.CheckBox();
        this.txtDescription = new System.Windows.Forms.TextBox();
        this.label5 = new System.Windows.Forms.Label();
        this.groupBox1.SuspendLayout();
        this.SuspendLayout();
        // 
        // btnCancel
        // 
        this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        resources.ApplyResources(this.btnCancel, "btnCancel");
        this.btnCancel.Name = "btnCancel";
        this.btnCancel.UseVisualStyleBackColor = true;
        // 
        // btnOK
        // 
        resources.ApplyResources(this.btnOK, "btnOK");
        this.btnOK.Name = "btnOK";
        this.btnOK.UseVisualStyleBackColor = true;
        // 
        // txtName
        // 
        resources.ApplyResources(this.txtName, "txtName");
        this.txtName.Name = "txtName";
        this.txtName.TextChanged += new System.EventHandler(this.txtPassword_TextChanged);
        // 
        // label1
        // 
        resources.ApplyResources(this.label1, "label1");
        this.label1.Name = "label1";
        // 
        // txtLogin
        // 
        resources.ApplyResources(this.txtLogin, "txtLogin");
        this.txtLogin.Name = "txtLogin";
        this.txtLogin.TextChanged += new System.EventHandler(this.txtPassword_TextChanged);
        // 
        // label2
        // 
        resources.ApplyResources(this.label2, "label2");
        this.label2.Name = "label2";
        // 
        // txtPassword
        // 
        resources.ApplyResources(this.txtPassword, "txtPassword");
        this.txtPassword.Name = "txtPassword";
        this.txtPassword.UseSystemPasswordChar = true;
        this.txtPassword.TextChanged += new System.EventHandler(this.txtPassword_TextChanged);
        // 
        // label3
        // 
        resources.ApplyResources(this.label3, "label3");
        this.label3.Name = "label3";
        // 
        // label4
        // 
        resources.ApplyResources(this.label4, "label4");
        this.label4.Name = "label4";
        // 
        // cbxRight
        // 
        this.cbxRight.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.cbxRight.FormattingEnabled = true;
        resources.ApplyResources(this.cbxRight, "cbxRight");
        this.cbxRight.Name = "cbxRight";
        this.cbxRight.SelectedIndexChanged += new System.EventHandler(this.cbxRight_SelectedIndexChanged);
        // 
        // groupBox1
        // 
        this.groupBox1.Controls.Add(this.chkSpeedGun);
        this.groupBox1.Controls.Add(this.chkReport);
        this.groupBox1.Controls.Add(this.chkUser);
        this.groupBox1.Controls.Add(this.chkCamera);
        this.groupBox1.Controls.Add(this.chkOption);
        this.groupBox1.Controls.Add(this.chkView);
        resources.ApplyResources(this.groupBox1, "groupBox1");
        this.groupBox1.Name = "groupBox1";
        this.groupBox1.TabStop = false;
        // 
        // chkSpeedGun
        // 
        resources.ApplyResources(this.chkSpeedGun, "chkSpeedGun");
        this.chkSpeedGun.Name = "chkSpeedGun";
        this.chkSpeedGun.UseVisualStyleBackColor = true;
        // 
        // chkReport
        // 
        resources.ApplyResources(this.chkReport, "chkReport");
        this.chkReport.Name = "chkReport";
        this.chkReport.UseVisualStyleBackColor = true;
        // 
        // chkUser
        // 
        resources.ApplyResources(this.chkUser, "chkUser");
        this.chkUser.Name = "chkUser";
        this.chkUser.UseVisualStyleBackColor = true;
        // 
        // chkCamera
        // 
        resources.ApplyResources(this.chkCamera, "chkCamera");
        this.chkCamera.Name = "chkCamera";
        this.chkCamera.UseVisualStyleBackColor = true;
        // 
        // chkOption
        // 
        resources.ApplyResources(this.chkOption, "chkOption");
        this.chkOption.Name = "chkOption";
        this.chkOption.UseVisualStyleBackColor = true;
        // 
        // chkView
        // 
        resources.ApplyResources(this.chkView, "chkView");
        this.chkView.Name = "chkView";
        this.chkView.UseVisualStyleBackColor = true;
        // 
        // txtDescription
        // 
        resources.ApplyResources(this.txtDescription, "txtDescription");
        this.txtDescription.Name = "txtDescription";
        // 
        // label5
        // 
        resources.ApplyResources(this.label5, "label5");
        this.label5.Name = "label5";
        // 
        // frmUser
        // 
        this.AcceptButton = this.btnOK;
        this.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
        this.CancelButton = this.btnCancel;
        resources.ApplyResources(this, "$this");
        this.Controls.Add(this.label5);
        this.Controls.Add(this.txtDescription);
        this.Controls.Add(this.groupBox1);
        this.Controls.Add(this.cbxRight);
        this.Controls.Add(this.label4);
        this.Controls.Add(this.txtPassword);
        this.Controls.Add(this.label3);
        this.Controls.Add(this.txtLogin);
        this.Controls.Add(this.label2);
        this.Controls.Add(this.btnCancel);
        this.Controls.Add(this.btnOK);
        this.Controls.Add(this.txtName);
        this.Controls.Add(this.label1);
        this.MaximizeBox = false;
        this.MinimizeBox = false;
        this.Name = "frmUser";
        this.ShowInTaskbar = false;
        this.groupBox1.ResumeLayout(false);
        this.ResumeLayout(false);
        this.PerformLayout();

//$this.AutoScaleDimensions	8, 16	
//$this.ClientSize	450, 364	
//$this.Font	Microsoft Sans Serif, 9.75pt	
//$this.Margin	4, 4, 4, 4	
//$this.StartPosition	CenterScreen	
//btnCancel.Location	350, 319	
//btnCancel.Size	90, 28	
//btnCancel.TabIndex	12	
//btnOK.Enabled	False	
//btnOK.Location	242, 319	
//btnOK.Size	90, 28	
//btnOK.TabIndex	11	
//cbxRight.Location	136, 96	
//cbxRight.Size	302, 24	
//cbxRight.TabIndex	7	
//chkCamera.AutoSize	True	
//chkCamera.Enabled	False	
//chkCamera.Location	233, 22	
//chkCamera.Size	128, 20	
//chkCamera.TabIndex	1	
//chkOption.AutoSize	True	
//chkOption.Enabled	False	
//chkOption.Location	18, 48	
//chkOption.Size	82, 20	
//chkOption.TabIndex	2	
//chkReport.AutoSize	True	
//chkReport.Enabled	False	
//chkReport.ImeMode	NoControl	
//chkReport.Location	18, 74	
//chkReport.Size	134, 20	
//chkReport.TabIndex	4	
//chkSpeedGun.AutoSize	True	
//chkSpeedGun.Enabled	False	
//chkSpeedGun.ImeMode	NoControl	
//chkSpeedGun.Location	233, 74	
//chkSpeedGun.Size	198, 20	
//chkSpeedGun.TabIndex	5	
//chkUser.AutoSize	True	
//chkUser.Enabled	False	
//chkUser.Location	233, 48	
//chkUser.Size	165, 20	
//chkUser.TabIndex	3	
//chkView.AutoSize	True	
//chkView.Enabled	False	
//chkView.Location	18, 22	
//chkView.Size	209, 20	
//chkView.TabIndex	0	
//groupBox1.Location	9, 126	
//groupBox1.Size	435, 109	
//groupBox1.TabIndex	8	
//label1.AutoSize	True	
//label1.Location	12, 15	
//label1.Size	118, 16	
//label1.TabIndex	0	
//label2.AutoSize	True	
//label2.Location	12, 43	
//label2.Size	82, 16	
//label2.TabIndex	2	
//label3.AutoSize	True	
//label3.Location	12, 71	
//label3.Size	62, 16	
//label3.TabIndex	4	
//label4.AutoSize	True	
//label4.Location	12, 99	
//label4.Size	97, 16	
//label4.TabIndex	6	
//label5.AutoSize	True	
//label5.Location	12, 248	
//label5.Size	52, 16	
//label5.TabIndex	9	
//txtDescription.Location	12, 267	
//txtDescription.MaxLength	255	
//txtDescription.Multiline	True	
//txtDescription.Size	426, 40	
//txtDescription.TabIndex	10	
//txtLogin.Location	136, 40	
//txtLogin.MaxLength	50	
//txtLogin.Size	302, 22	
//txtLogin.TabIndex	3	
//txtName.Location	136, 12	
//txtName.MaxLength	50	
//txtName.Size	302, 22	
//txtName.TabIndex	1	
//txtPassword.Location	136, 68	
//txtPassword.MaxLength	50	
//txtPassword.Size	302, 22	
//txtPassword.TabIndex	5	
	}
	public string method_0()
	{
		return this.txtName.Text;
	}
	public void method_1(string string_0)
	{
		this.txtName.Text = string_0;
	}
	public string method_2()
	{
		return this.txtLogin.Text;
	}
	public void method_3(string string_0)
	{
		this.txtLogin.Text = string_0;
	}
	public string method_4()
	{
		return this.txtPassword.Text;
	}
	public void method_5(string string_0)
	{
		this.txtPassword.Text = string_0;
	}
	public int method_6()
	{
		return this.cbxRight.SelectedIndex;
	}
	public void method_7(int int_0)
	{
		this.cbxRight.SelectedIndex = int_0;
	}
	public string method_8()
	{
		return this.txtDescription.Text;
	}
	public void method_9(string string_0)
	{
		this.txtDescription.Text = string_0;
	}
	public void method_10(bool bool_0)
	{
		this.cbxRight.Enabled = !bool_0;
	}
	private void cbxRight_SelectedIndexChanged(object sender, System.EventArgs e)
	{
		switch (this.cbxRight.SelectedIndex)
		{
		case 0:
			this.chkView.Checked = true;
			this.chkOption.Checked = true;
			this.chkReport.Checked = true;
			this.chkCamera.Checked = true;
			this.chkUser.Checked = true;
			this.chkSpeedGun.Checked = true;
			return;
		case 1:
			this.chkView.Checked = true;
			this.chkOption.Checked = true;
			this.chkReport.Checked = true;
			this.chkCamera.Checked = false;
			this.chkUser.Checked = false;
			this.chkSpeedGun.Checked = false;
			return;
		case 2:
			this.chkView.Checked = true;
			this.chkOption.Checked = false;
			this.chkReport.Checked = false;
			this.chkCamera.Checked = false;
			this.chkUser.Checked = false;
			this.chkSpeedGun.Checked = false;
			return;
		default:
			return;
		}
	}
	private void txtPassword_TextChanged(object sender, System.EventArgs e)
	{
		if (this.txtName.Text != string.Empty && this.txtLogin.Text != string.Empty && this.txtPassword.Text != string.Empty)
		{
			this.btnOK.Enabled = true;
			return;
		}
		this.btnOK.Enabled = false;
	}
}
